package com.rxb.blog.common;

/**
 * Author：rxb
 * Date：2020-01-17 11:37
 * Description：<描述>
 */
public enum ResultCode implements IErrorCode {

    SUCCESS_CODE(200,"请求成功"),
    EXCEPTION_CODE(500,"系统异常"),
    NOTFOUND_CODE(404,"您请求的资源不存在");

    private long code;

    private String message;


    private ResultCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
